<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}

<div class="x-nav">
	<span class="layui-breadcrumb">
		<a>首页</a>
		<a>会员管理</a>
		<a>返点记录</a>
	</span>
	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
		<i class="layui-icon" style="line-height:30px">ဂ</i>
	</a>
	<!--<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin:3px 5px 0 0;float:right" href="?m={$m}&c={$c}&a=add" title="添加">
		<i class="layui-icon" style="line-height:30px">添加</i>
	</a>-->
</div>

<div class="x-body">
	<div id="searchid" class="layui-clear margin-b10">
		<form name="searchform" class="layui-form" action="?" method="get" >
			<input type="hidden" name="m" value="{$m}" />
			<input type="hidden" name="c" value="{$c}" />
			<input type="hidden" name="a" value="{$a}" />
			<div class="left">
				<input name="dt1" id="dt1" type="text" value="{$dt1}" class="layui-input date" style="width:100px;" placeholder="返点时间" />
			</div>
			<div class="left margin-l10" style="padding-top:10px;">~</div>
			<div class="left margin-l10">
				<input name="dt2" id="dt2" type="text" value="{$dt2}" class="layui-input date" style="width:100px;" placeholder="返点时间" />
			</div>
			<div class="left margin-l10">
				<input type="submit" name="search" class="layui-btn" value="搜索" />
			</div>
		</form>
	</div>
	
	<table class="layui-table">
		<thead>
			<tr>
				<th>会员</th>
				<th>充值</th>
				<th>提现</th>
				<th>余额</th>
				<th>返点金额</th>
				<th>返点时间</th>
			</tr>
		</thead>
		<tbody id="datalist">
			{loop $data as $val}
			<tr data-id="{$val['id']}" data-cid="{$val['cid']}">
				<td><a href="?m={$m}&c={$c}&a={$a}&uid={$val['uid']}">{$val['username']}</a></td>
				<td>{$val['recharge']}</td>
				<td>{$val['cash']}</td>
				<td>{$val['balance']}</td>
				<td>{$val['money']}</td>
				<td>{date('Y-m-d H:i:s',$val['dateline'])}</td>
			</tr>
			{/loop}
		</tbody>
	</table>
	<div class="layui-clear">
		<div id="pages" class="layui-laypage right">{$multi}</div>		
	</div>
</div>

{template index/footer}